//
//  VideoURLPath.m
//  封装播放器
//
//  Created by douya on 15/1/26.
//  Copyright (c) 2015年 douya. All rights reserved.
//

#import "VideoURLPath.h"
#import "VideoCache.h"
@implementation VideoURLPath
+(NSURL *)getVideoURL:(NSString *)videoString
{
    VideoCache *videoCache=[VideoCache shareVideoCache];
    
    NSURL *url=nil;
    
    url=[videoCache searchLocalFromSandBox:videoString];
    
    if (url!=nil)
    {
        NSLog(@"从沙盒中找到了");
    }
    else
    {
        NSLog(@"在网上提取的");
      url=[videoCache getFromNetworkWithString:videoString];
    
    }
    
     return url;
    
    
}
@end
